package com.xbai.bean.factory;

import com.xbai.domain.User;
import org.springframework.beans.factory.FactoryBean;

/**
 * @author jxbai
 * @desc
 * @date 2021/1/26 0026
 */
public class UserFactoryBean implements FactoryBean {
    @Override
    public Object getObject() throws Exception {
        User user = new User();
        user.setId(1L);
        user.setName("UserFactoryBean#getObject");
        return user;
    }

    @Override
    public Class<?> getObjectType() {
        return User.class;
    }
}
